//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        //TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
        // to see how IntelliJ IDEA suggests fixing it.
        int[] array = {5, 2, 4, 6, 1, 3};
        System.out.println("排序前：");
        for (int i : array) {
            System.out.print(i + " ");
        }
        System.out.println();

        InsertionSort.sort(array);

        System.out.println("排序后：");
        for (int i : array) {
            System.out.print(i + " ");
        }
    }
}
